home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS Toolkit
/
BBS Toolkit.iso
/
ezy_comm
/
ezy1023.zip
/
EKIT102.ZIP
/
DEMO.PAS
next >
Wrap
Pascal/Delphi Source File
|
1992-10-24
|
863b
|
45 lines
(* Ezycom V1.01 Developers Kit
Demo Program *)
program demo;
uses ezyfos,ezyinc;
procedure test;
var
tw : word;
begin
tw := getkey;
if (fossilerror > 0) then
begin
writeln(fossilerrorstring);
end else
if (getkey >= 256) then
begin
writeln('Special Key Hit: ',getkey);
end else
begin
writeln('Key Hit: ',chr(getkey));
if localkey then
writeln('Local Keyboard') else
writeln('Remote Keyboard');
end;
end;
begin
writeln(chr(254) + ' Demo Firing up on Node ',node);
writeln(chr(254) + ' Sysop: ',configrec.sysop);
comport := 1; (* comport 2 *)
if not initfossil then
begin
writeln(chr(254) + ' Fossil Init Error');
halt(1);
end;
test;
deinitfossil;
end.